package ar.edu.itba.pod.legajo45129.simul.communication.payload;

import ar.edu.itba.pod.legajo45129.simul.communication.ExchangeInfo;
import ar.edu.itba.pod.simul.communication.payload.ResourceTransferMessagePayload;
import ar.edu.itba.pod.simul.market.Resource;

public class ResourceTransferMessagePayloadImpl implements ResourceTransferMessagePayload {
	
	

	/**
	 * 
	 */
	private static final long serialVersionUID = -8238730191298011104L;
	
	private ExchangeInfo exchangeInfo;

	public ResourceTransferMessagePayloadImpl(ExchangeInfo exchangeInfo) {
		this.exchangeInfo = exchangeInfo;
	}

	@Override
	public int getAmount() {
		return exchangeInfo.getAmount();
	}

	@Override
	public String getDestination() {
		return exchangeInfo.getDestinationNode();
	}

	@Override
	public Resource getResource() {
		return exchangeInfo.getResource();
	}

	@Override
	public String getSource() {
		return exchangeInfo.getSourceNode();
	}

}
